# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=waypipe
pkgver=0.8.6
pkgrel=0
pkgdesc="proxy for Wayland clients"
url="https://gitlab.freedesktop.org/mstoeckl/waypipe"
arch="all !s390x" # fttfs
license="MIT"
makedepends="meson wayland-protocols wayland-dev scdoc lz4-dev zstd-dev mesa-dev
	libdrm-dev ffmpeg-dev libva-dev"
source="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v$pkgver/waypipe-v$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson \
		-Dwerror=false \
		-Db_ndebug=true \
		build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
c3f20040d4dde1ae16f71a5c437a612915d09f0a0328bb184b068a38131c37c0c04bf42acbdc775f167da3cf10f49209a3226136629e001ea724518b70944c68  waypipe-v0.8.6.tar.gz
"
